﻿using BaseData.Domain;
using BaseData.ErrorCode;
using BaseData.Infrastructure.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseData.Infrastructure.User
{
    public interface IUserService
    {
        Task<PaggingResult<List<Users>>> GetUsers(int index, int size, long? userId, string? level, string? userTitle, string? channel);
        Task<List<Users>> GetUser();
        Task<int> UserDel(int id);
        Task<int> AddUserRole(Users user,List<int> rolelist);
        Task<List<Roles>> GetRoles();
        Task<int> UpdUser(Users users);
        Task<List<int>> GetUsersRoles(int userId);
        Task<PaggingResult<List<Roles>>> GetRoleList(int index,int size,string? rolename);
        Task<int> AddRole(Roles role);
        Task<int> UpdRole(Roles role);
        Task<int> UpdateRoleState(RoleStateDto dto);
        Task<int> DelRole(int id);
        Task<Roles> GetRoles(int id);
    }
}
